import request from '@/utils/request';

export function getVoices(params) {
    return request({
      url: '/voices',
      method: 'get',
      params
    })
  }

  export const updateVoices = (data) => {
    return request({
      url: `/voices/${data.id}`,
      method: 'put',
      data
    })
  }

  export const deleteUser = (id) => {
    return request({
      url: `/voices/${id}`,
      method: 'delete'
    })
}